/**
 * Copyright (C) 2014 Luvina Software Company
 * Constant.java, Dec 15, 2014, Nguyen Huu Luan LA11_AM
 *
 */
package net.luvina.manageuser.utils;

/**
 * Constant
 * 
 * @author luan
 * 
 */
public class Constant {
	/*
	 * JSP pages
	 */
	public static final String ADM001 = "jsp/ADM001.jsp";
	public static final String ADM002 = "jsp/ADM002.jsp";
	public static final String ADM003 = "jsp/ADM003.jsp";
	public static final String ADM004 = "jsp/ADM004.jsp";
	public static final String ADM005 = "jsp/ADM005.jsp";
	public static final String ADM006 = "jsp/ADM006.jsp";
	public static final String SYSTEM_ERROR = "jsp/System_Error.jsp";
	/*
	 * Độ dài tối thiểu, tối đa, cho các hạng mục.
	 */
	public static final int MIN_YEAR = Integer.parseInt(ProjectProperties
			.getMessage("min_year"));
	public static final int MIN_LENGTH_LOGIN_NAME = Integer
			.parseInt(ProjectProperties.getMessage("min_length_login_name"));
	public static final int MAX_LENGTH_LOGIN_NAME = Integer
			.parseInt(ProjectProperties.getMessage("max_length_login_name"));
	public static final int MAX_LENGTH_FULL_NAME = Integer
			.parseInt(ProjectProperties.getMessage("max_length_full_name"));
	public static final int MAX_LENGTH_KANA = Integer
			.parseInt(ProjectProperties.getMessage("max_length_full_name_kana"));
	public static final int MAX_LENGTH_EMAIL = Integer
			.parseInt(ProjectProperties.getMessage("max_length_email"));
	public static final int MAX_LENGTH_TEL = Integer.parseInt(ProjectProperties
			.getMessage("max_length_tel"));
	public static final int MAX_LENGTH_PASSWORD = Integer
			.parseInt(ProjectProperties.getMessage("max_length_password"));
	public static final int MIN_LENGTH_PASSWORD = Integer
			.parseInt(ProjectProperties.getMessage("min_length_password"));
	/*
	 * Pattern for matching.
	 */
	public static final String EMAIL_PATTERN = ProjectProperties
			.getMessage("email_pattern");
	public static final String TEL_PATTERN = ProjectProperties
			.getMessage("tel_pattern");
	public static final String LOGIN_NAME_PATTERN = ProjectProperties
			.getMessage("login_name_pattern");
	public static final String KATAKANA_PATTERN = ProjectProperties
			.getMessage("katakana_pattern");
	public static final String DATE_FORMAT = ProjectProperties
			.getMessage("date_format");

}
